# Doclib Alert
Creates or updates SharePoint alerts on a document library by processing rows from an Excel file. Each row names a DocLibCfg template whose Alerts collection defines which alerts to create — the alert definitions live in config.json, not in the Excel file.
Filename pattern: filename must contain DoclibAlert (case-insensitive).
Example: 20240115 DoclibAlert setup.xlsx
# Columns
| Name | Required | Description |
|---|---|---|
| Url / SiteUrl | Conditional | Server-relative URL of the target document library. Required when MatterCode is not provided. |
| MatterCode | Conditional | Matter code used to resolve document libraries from the matter list. Required when Url is not provided. |
| ClientCode | No | Client code used together with MatterCode to identify the matter. |
| DoclibSet | Yes | Name of the DocLibCfg template in config.json whose Alerts collection defines the alerts to create. |
| Properties | No | Any additional columns are collected as properties and passed to the template lookup. |
Either Url or MatterCode must be provided. DoclibSet is always required.
# Related links
DocLibCfg— defines the library templates and their alert configurations- Doclib Set handler — apply full document library configuration